package com.example.service;

import com.example.domain.ShoppingCart;

import java.util.List;
import java.util.SplittableRandom;

public interface ShoppingCartService {
    public List<ShoppingCart> selectall(Long userId);

    public ShoppingCart selectbyname(String name,Long userId);

    public void savethesetmeal(ShoppingCart shoppingCart);

    public int getnumberbyname(String name,Long userId);

    public void savethedish(ShoppingCart shoppingCart);

    public void updatenumber(int mumber,Long user,String name);
    public ShoppingCart sgetnumberbysetmeal(Long id,Long user);

    public void deletebyname(String name,Long userId);

    public ShoppingCart getnumberbydish(Long dishId,Long userId);

    public void clean(Long userId);
}
